home *** CD-ROM | disk | FTP | other *** search
/ Language/OS - Multiplatform Resource Library / LANGUAGE OS.iso / cpp_libs / rjs.lha / RJS / tests / XKernelVar.h < prev   
C/C++ Source or Header  |  1991-06-14  |  452b  |  18 lines

  1. #include <iostream.h>
  2. #include "RJS/NDR.h"
  3. #include "RJS/KernelVar.h"
  4.  
  5. class Xkern_loadav : public KernelVar::kern_loadav, public XNDR {
  6.     friend ostream &operator<<(ostream &os, Xkern_loadav &load) {
  7.         os << load.la[0] << " " << load.la[1] << " " << load.la[2];
  8.         return os;
  9.     }
  10. public:
  11.     virtual void to_external(NDR_send &ndr) {
  12.         ndr << la[0] << la[1] << la[2];
  13.     }
  14.     virtual void to_internal(NDR_receive &ndr) {
  15.         ndr >> la[0] >> la[1] >> la[2];
  16.     }
  17. };
  18.